/* pages/chat/chat.wxss */
.container {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #32A9F5 0%, #FFFFFF 100%)
}

.fixedvoiec {
  width: 52rpx;
  height: 52rpx;
  padding-right: 2rpx;
  padding-top: 2rpx;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 5.2%;
  top: 1.4%;

  .voice,
  .novoice {
    position: relative;
    width: 42rpx;
    height: 42rpx;
    display: flex;
    justify-content: center;
    align-items: center;

    image {
      width: 100%;
      height: 100%;
    }
  }
}

.footer {
  height: 98rpx;
  box-sizing: border-box;
  padding: 0rpx 22rpx;
  transition: height 0.2s linear;

  &.large{
    height: 450rpx;
  }

  .enter{
    width: 100%;
    height: 88rpx;
    flex-basis: 88rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 100rpx;
    padding: 0 16rpx;
    box-sizing: border-box;
  }
  
  .type {
    width: 57rpx;
    height: 57rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12rpx;
    position: relative;
    box-shadow: 1px 1px 4px 1px #0000001F;
    border-radius: 50%;

    .star1 {
      width: 30.95rpx;
      height: 30.79rpx;
    }
    .star2{
      position: absolute;
      top: 13rpx;
      left: 36rpx;
      width: 8rpx;
      height: 8rpx;
    }
  }

  .content {
    height: 70rpx;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    flex: 1;

    .textarea {
      height: 68rpx;
      line-height: 68rpx;
      max-height: 100%;
      padding-left: 16rpx;
      font-size: 24rpx;
    }
  }

  .send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100rpx;
    height: 60rpx;
    color: white;
    border-radius: 30rpx;
    font-size: 24rpx;
    background-image: linear-gradient(to top, #1B86F1FF, #32A9F5FF);
    margin-left: 12rpx;
  }

  .microphone {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 370rpx;

    .wait {
      width: 0rpx;
      height: 40rpx;
      z-index: 10;
      border-radius: 12rpx;
      margin-bottom: 10rpx;
      position: relative;
      overflow: hidden;
      margin-bottom: 10rpx;

      &.animateWidth{
        animation: width 2s linear forwards;
      }
    }

    .microphone-text {
      height: 40rpx;
      font-size: 28rpx;
      color: #717171;
      margin-bottom: 10rpx;
    }

    .microphone-image {
      width: 205rpx;
      height: 205rpx;

      image {
        width: 100%;
        height: 100%;
      }
    }
  }
}

// 新首页
.home{
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.list {
  width: 100%;
  box-sizing: border-box;
  padding: 40rpx 35rpx 0;
  flex: 1;
  overflow: hidden;

  scroll-view{
    height: 100%;
  }

  .item {
    width: 100%;
    overflow: hidden;
    display: flex;
    margin-bottom: 20rpx;
    &:nth-last-child(1){
      padding-bottom: 20rpx;
    }
    
    .dialog{
      width: 100%;

      > .info{
        display: flex;

        > .head {
          width: 60rpx;
          height: 60rpx;
          background: rgba(255, 255, 255, 0.6);
          border-radius: 30rpx;
          display: flex;
          align-items: center;
          justify-content: center;

          image{
            width: 45.67rpx;
            height: 42.33rpx;
            margin-top: 5rpx;
          }
        }

        > .content {
          flex: 1;
          overflow: hidden;
          background: none;
          margin: 0 20rpx;          
        }
      }

      // 提问
      &.user {
        .info{
          flex-direction: row-reverse;
        }
        .content {
          text-align: right;
        }
      }
    }

    // 追问
    .problemBox {
      margin: 5rpx 0 0 80rpx;
      flex-wrap: wrap;

      .problem {
        display: flex;
        align-items: center;
        height: 52rpx;
        max-width: max-content;
        border-radius: 30rpx;
        padding: 0 28rpx;
        margin-top: 15rpx;
        color: #434343;
        font-size: 24rpx;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        background: rgba(255, 255, 255, 0.6);
      }
    }
  }
}

.new-intro{
  width: calc(100% - 40rpx);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 50rpx 50rpx 50rpx;
  padding: 42rpx;
  box-sizing: border-box;

  .head{
    display: flex;

    .l{
      flex: 1;
      font-size: 36rpx;
      line-height: 1.2;
      color: #1A3B5F;
      font-weight: 500;
      margin-bottom: 20rpx;
    }
    .r{
      width: 180rpx;
      height: 167rpx;
      margin-top: -35rpx;
    }
  }

  .tip{
    font-size: 28rpx;
    color: #2D5C8D;
  }

  .qlist{
    margin-top: 36rpx;

    .item{
      width: auto;
      height: 72rpx;
      background: #fff;
      padding: 0 30rpx;
      border-radius: 36rpx;
      display:  flex;
      font-size: 22rpx;
      align-items: center;
      margin: 14rpx 0 0;

      .ask{
        display: flex;
        align-items: center;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        .span{
          color:#36ABF6;
          font-weight: 700;
        }
      }

      .arrow{
        width: 33rpx;
        height: 33rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #CEEAFD;
        border-radius: 50%;

        image{
          width: 8rpx;
          height: 12rpx;
        }
      }
    }
  }
}

.footer{
  .entrys{
    height: 54rpx;
    display: flex;
    align-items: center;
    margin-bottom: 18rpx;
    .entry{
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 26rpx;
      padding: 0 18rpx;
      height: 52rpx;
      font-size: 20rpx;
      margin-right: 28rpx;

      .span{
        padding: 0 0 0 10rpx;
      }
      .icon{
        width: 20rpx;
        height: 20rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        svg{
          width: 100%;
          height: 100%;
          fill: currentColor
        }
      }
      &.show{
        background: #36ABF6;
        color: #fff;
      }
    }
  }
}

.assistant-title{
  height: 50rpx;
  display: flex;
  align-items: center;
  color: #fff;
  gap: 14rpx;
  padding: 0 0 0 40rpx;
  image{
    width: 32rpx;
    height: 31rpx;
  }
}

.card{
  background: #fff;
  border-radius: 14rpx;
  overflow:hidden;
  &.card-common{
    width: 560rpx;
  }
  &.card-pic{
    width: 548rpx;
    image{
      width: 100%;
      height: 250rpx;
    }
  }
  &.card-video{
    width: 548rpx;
    
    .video {
      height: 265rpx;
      overflow: hidden;
      .video-media{
        height: 100%;
        padding: 0;
        margin: 0;
      }
    }
  }
  &.card-recommend{
    width: 560rpx;
    .l{
      display: flex;
      gap: 18rpx;
      margin-bottom: 36rpx;
      &:nth-last-child(1){
        margin-bottom: 0;
      }

      .avatar{
        width: 108rpx;
        height: 108rpx;
      }
      .info{
        .title{
          color: #32A9F5;
          font-size: 28rpx;
          font-weight: 500;
          &.hot{
            color: #32A9F5;
          }
        }
        .author{
          font-size: 24rpx;
        }
        .hotnum{
          font-size: 20rpx;
        }
      }
    }
  }
  &.card-train{
    .t{
      font-size: 20rpx;
      color: #969696;
      margin-bottom: 10rpx;
      &.space{
        margin-top: 26rpx;
      }
    }
    .q{
      color: #474747;
      font-size: 27rpx;
      font-weight: 500;
    }
    .a{
      font-size: 22rpx;
      color: #000;
      font-weight: 400;
    }
  }
  &.card-list{
    .card-content{
      padding: 10rpx 24rpx;
    }
    .list-item{
      display: flex;
      justify-content: space-between;
      padding: 20rpx 0;
      border-bottom: 1px #CDCDCD solid;
      align-items: center;
      &:nth-last-child(1){
        border: 0rpx;
      }
      .l{
        font-size: 26rpx;
        flex: 1;
        padding: 0 10rpx 0 0;
      }
      .button{
        width: 110rpx;
        height: 44rpx;
        flex-basis: 110rpx;
        background:#32A9F5;
        border-radius: 55rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
      }
    }
  }
  .card-header{
    height: 80rpx;
    line-height: 80rpx;
    background: #32A9F5;
    color: #fff;
    padding: 0 25rpx;
    font-size: 28rpx;
  }
  .card-content{
    font-size: 22rpx;
    padding: 32rpx 28rpx 28rpx;
  }
  .card-button{
    height: 65rpx;
    margin: 0 26rpx 30rpx;
    box-sizing: border-box;
    background: #32A9F5;
    color: #fff;
    border-radius: 16rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24rpx;
  }
}